## -*- coding: utf-8 -*- 



<%include file="header.html"/>

<table width="960px" cellpadding="0" cellspacing="0" boder="0">
<tr>
    <td valign="top" class="tags">
	  
	  %for x in v.tag:
		
		  <div><a href="/diarypy/app.py/diaryListByTag?tag=${x.tag_name_url}">${x.tag_name}</a>(${x.count})</div>											    
		   
	  %endfor 
    </td>
	 <form action="/diarypy/app.py/deleteMore" method=POST> 
    <td><table width="830px" cellpadding="0" cellspacing="0" border="0">
	  <tr><td align="left">
		      <input type="submit" value="删除">
	      </td>
		 <td align="right">
			%if v.hasPrePage==True:
			      <a href="/diarypy/app.py/diaryList?page=${v.prePage}">PREVIOR</a>
			%endif
			      now:${v.nowPage}/totil:${v.totil}
			%if v.hasNextPage==True:
			      <a href="/diarypy/app.py/diaryList?page=${v.nextPage}">NEXT</a>
			%endif
			      </td>
	  </tr>
	</table>
	
	
	<table width="830px" cellpadding="0" cellspacing="0" border="0">
	  
	    %for x in v.A: 
	  <tr><td width="30"><input type="checkbox"  name="diary_id" value="${x.id}"></td>
	      <td class="id" width="80">&nbsp; ID${x.id}</td> 
	      <td><div class="diary-row">
		    <span class="title">${x.title}</span>
		    <span class="content">${x.content}</span>
	    </div></td>
	    <td><div class="tag-row">
		    <% p=0 %>

		    %for y in x.tagsforUrl:
			    <a href="/diarypy/app.py/diaryListByTag?tag=${y}">${x.tag[p]}</a>
			    <% p = p+1 %>
		    %endfor	</div></td>	
	    <td width="60">已读&nbsp;&nbsp;<span class="amount">${x.read_count}</span></td>
	    <td class="time" width="140">${x.create_time}</td>
	    <td width="90" align="right">
			
			    <a href="/diarypy/app.py/readDiary?id=${x.id}">阅读</a>
			    <a href="/diarypy/app.py/updateDb?id=${x.id}">编辑</a>
			    <a href="http://localhost/diarypy/app.py/deleteDiary?id=${x.id}">删除</a>
	    </td>
	</tr> 
	    %endfor
			    
	
      </table>
      </form>
      </td>
</tr>
</table>

<%include file="footer.html"/>
